package com.byxy.ssm.demo.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.ssm.demo.dao.ForumDao;
import com.byxy.ssm.demo.entity.Forum;
import com.byxy.ssm.demo.service.ForumService;

@Service  // 业务类
//@Repository // Dao类
//@Component// 通用类
//@Controller // 控制类
//@Configuration // 配置类
// 同一功能--- 注册

@Transactional
public class ForumServiceImpl implements ForumService {

	
	@Resource
	private ForumDao forumDao;
	@Override
	public List<Forum> findAll() {
		return forumDao.find();
	}

}
